<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class SendEmails extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'email:send {user} {--Q|query=def}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Send an email to a user.';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        //
        $name = $this->ask('What is your name?');
        $this->info('Your name is ' . $name);
        $secret = $this->secret('What is your secret?');
        $this->info('Your secret is ' . $secret);
        $res = $this->confirm('Do you wish to continue? [y|n]');
        $this->error($res);
        $name2 = $this->anticipate('What is your name?', ['Danial', 'John'], false);
        $this->line($name2);
        $name3 = $this->choice('What is your name?', ['Michael', 'Sam'], false);
        $this->info($name3);

        $this->info('Hello, ' . $this->argument('user') . ', ' . $this->option('query'));
    }
}
